<script>
import AuthInfo from "@/utils/authInfo.js";
import {checkMapping} from "@/utils/mappingUtil.js";
import eruda from "./eruda.min";

export default {
  onLaunch: async function () {
    console.log("App Launch");
    // 先检查是否存在部门映射
    await checkMapping()
    // await AuthInfo.toAuth();
    eruda.init();
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style lang="scss" >
@import url("./common/aui/aui.css");
// @import "uview-ui/theme.scss";
@import "uview-ui/index.scss";
/*每个页面公共css */
@import "pages/webIndex-questions/css/common.scss";
@import "pages/webIndex-questions/css/iconfont.css";
body {
  -webkit-overflow-scrolling: touch;

}
uni-toast .uni-toast{
  width:auto !important;
  max-width: 75vw;
  padding: 0 20rpx;
  min-width: 30vw;
}
uni-toast .uni-icon_toast{
  padding-bottom: 10rpx;
}

/*
  全局公共样式和字体图标
*/
@font-face {
  font-family: yticon;
  font-weight: normal;
  font-style: normal;
  src: url('./static/font.ttf') format('truetype');

}

.yticon {
  font-family: "yticon" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon--jianhao:before {
  content: "\e60b";
}
.icon-jia2:before {
  content: "\e60a";
}
</style>
